package com.ynny.Controller;


import com.ynny.entity.R;
import com.ynny.entity.User;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class LoginController {
    @PostMapping("/login")
    public R login(@RequestBody User user){

        System.out.println(user.getUsername() + "login请求");

        return R.ok(user);
    }
}
